package com.resou.reader.paycenter.v;

import com.resou.reader.api.entry.PayConfigBean;
import com.resou.reader.api.entry.WXPayBean;
import com.resou.reader.base.BaseView;
import com.resou.reader.base.v.IView;

import java.util.List;

/**
 * Created by Garrett on 2018/8/29.
 * contact me krouky@outlook.com
 */
public interface IPayView extends IView, BaseView {

    void setConfigList(List<PayConfigBean> configs);

    void showLoadingIndicator();

    void hideLoadingIndicator();

    void invokeWXPay(WXPayBean wxPayBean);

    void invokeAliPay(String orderInfo);
    void sycnUserInfo();

    /**
     * 支付成功回调
     *
     * @param rechargeAmount 支付的价格
     */
    void onPaySuccess(int rechargeAmount);

    /**
     * 支付失败回调
     *
     * @param msg 失败原因
     */
    void onPayFailed(String msg);
}
